package ooday01;
/**医生类*/
public class Doctor extends Person{
    String title;
    Doctor(){
    }
    Doctor(String name,int age,String address,String title){
        super.name=name;//访问父类的属性
        super.age=age;
        super.address=address;
        this.title=title;//访问子类的属性
    }
    void cut(){
        System.out.println(name+"正在做手术...");
    }
}
